import torch
from torch import nn

class Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.model = nn.Sequential(
            nn.Conv2d(1, 1, 3, padding=1),
            nn.Flatten(),
            nn.Linear(784, 16),
            nn.Linear(16, 16),
            nn.Linear(16, 10)
        )

    def forward(self, x):
        x = self.model(x)
        return torch.reshape(x, (1,-1))